package com.passion.es.config;

import org.dromara.easyes.starter.register.EsMapperScan;
import org.elasticsearch.client.ElasticsearchClient;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 类描述：
 *
 * @author ZhuYin
 * @since 2024年12月14日
 */
@ConditionalOnProperty(prefix = "archives.search", name = "type", havingValue = "easy-es")
@Configuration
@EsMapperScan("com.passion.es.domain.dao")
public class EasyEsConfig {

    @ConditionalOnProperty(prefix = "archives.search", name = "type", havingValue = "easy-es")
    @Bean
    public ElasticsearchClient esClient() {

        return null;
    }

}
